/*!
 * ZenPen
 * http://www.zenpen.io
 * MIT licensed
 *
 * Copyright (C) Tim Holman, http://tholman.com
 */


/*********************************************
 * BASE STYLES
 *********************************************/

* {
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}

*:focus {
	outline: none;
}

html {
	overflow: hidden;
}


html, body {
	font-family: 'Lora', serif;
	padding: 0;
	margin: 0;
	height: 100%;
}

body {
	padding-bottom: 40px;
	padding-right: 10px;
	overflow-y: scroll;
	padding-left: 10px;
	padding-top: 20px;
	min-width: 800px;
	width: 100%;

	-webkit-transition: all 600ms;
	-moz-transition: all 600ms;
	-ms-transition: all 600ms;
	-o-transition: all 600ms;
	transition: all 600ms;
}

section {
	max-width: 600px;
	height: 100%;
	margin: auto;
}

header {
	font-weight: bold;
	font-size: 38px;
	word-wrap: break-word;
}

article {
	padding-bottom: 50px;
	line-height: 30px;
	margin-top: 22px;
	min-height: 90%;
	font-size: 22px;
	display: block;
	word-wrap: break-word;
}

blockquote {
	border-left: 4px solid deepskyblue;
	margin-left: -19px;
	padding-left: 15px;
	margin-right: 0;
}

.no-overflow {
	overflow: hidden;
	display: block;
	height: 100%;
	width: 100%;
}

/* Used by the ui bubble to stop wrapping */
.lengthen {
	display: block;
	width: 300px;
	height: 100%;
}

.useicons {
	-webkit-font-smoothing: antialiased;
	font-size: 20px !important;
	font-family: 'icomoon' !important;
}

.yin {
	background: #fdfdfd;
	color: #111;
}

.yang {
	background-color: #111;
	color: #fafafa;
}

.ui {
	position: fixed;
	padding: 20px;
	width: 65px;
	bottom: 0;
	left: 0;
	top: 0;
}

.ui:hover button {
	opacity: .4;
}

.ui button:hover {
	opacity: 1;
}

.ui button, .text-options button {

	-webkit-transition: opacity 400ms;
	-moz-transition: opacity 400ms;
	-ms-transition: opacity 400ms;
	-o-transition: opacity 400ms;
	transition: opacity 400ms;

	font-family: inherit;
	background: none;
	cursor: pointer;
	font-size: 25px;
	color: inherit;
	opacity: .1;
	padding: 0;
	height: 32px;
	width: 25px;
	border: 0;
}

a {
	text-decoration: none;
	color: deepskyblue;
}

a:hover {
	text-decoration: underline;
}

.overlay {
	position: fixed;
	display: none;
	height: 100%;
	width: 100%;
	z-index: 3;
	left: 0;
	top: 0;
}

.quote {
	line-height: 60px !important;
	font-size: 49px !important;
}

/*********************************************
 * MODAL
 *********************************************/

.yang .modal {
	background-color: rgba(255,255,255,.9);
	color: #111;
}

.modal {
	background-color: rgba(0,0,0,.9);
	margin-left: -200px;
	position: absolute;
	border-radius: 3px;
	height: 101px;
	padding: 15px;
	display: none;
	width: 400px;
	bottom: 10px;
	color: #fff;
	left: 50%;
}

.modal h1 {
	text-align: center;
	font-size: 20px;
	padding: 0;
	margin: 0;
}

.modal div {
	margin-bottom: 10px;
	margin-top: 10px;
}

.modal input[type="number"] {
	font-size: 16px;
	display: block;
	margin: auto;
	width: 150px;
	padding: 5px;
}

.description {
	height: auto;
}

.description p {
	margin-bottom: 0;
	text-align: center;
}

.saveoverlay {
	margin-left: -215px;
	margin-top: -100px;
	height: 170px;
	left: 50%;
	top: 50%;
}

.saveoverlay div {
	text-align: center;
	font-size: 11px;
}

.saveselection {
	margin-top: 17px;
	text-align:center;
}

.saveselection span {

	-webkit-transition: color 250ms, background 250ms;
	-moz-transition: color 250ms, background 250ms;
	-ms-transition: color 250ms, background 250ms;
	-o-transition: color 250ms, background 250ms;
	transition: color 250ms, background 250ms;

	cursor: pointer;
	font-size: 15px;
	margin: 5px;
	padding: 5px;
	border: 2px solid white;
	border-radius: 3px;
}

.saveselection span:hover {
	background: rgba(255,255,255,.8);
	color: black;
}

.savebutton {

	-webkit-transition: opacity 250ms;
	-moz-transition: opacity 250ms;
	-ms-transition: opacity 250ms;
	-o-transition: opacity 250ms;
	transition: opacity 250ms;

	font-size: 30px !important;
	margin: 15px auto;
	background: none;
	cursor: pointer;
	display: block;
	border: none;
	padding: 0;
	width: 80px;
	color: #fff;
	margin-top: -2px;
}

.yang .savebutton {
	color: #000;
}

.savebutton:hover {
	opacity: .7;
}

.activesave {
	background: rgba(255,255,255,.8);
	color: black;
}

.hiddentextbox {
	opacity:0;
	filter:alpha(opacity=0);
	position:absolute;
}

/*********************************************
 * WORD COUNT
 *********************************************/

.wordcount {
	margin-left: -150px;
	width: 300px;
}

.word-counter {
	box-shadow: inset 0 0 9px -2px rgba(0,0,0,.9);
	position: fixed;
	height: 100%;
	right: -6px;
	width: 6px;
	top: 0;
}

.word-counter.active {
	right: 0;
}

.word-counter .progress {
	-webkit-transition: all 400ms ease-in-out;
	-moz-transition: all 400ms ease-in-out;
	-ms-transition: all 400ms ease-in-out;
	-o-transition: all 400ms ease-in-out;
	transition: all 400ms ease-in-out;
	
	background-color: deepskyblue;
	position: absolute;
	bottom: 0;
	width: 100%;
	height: 0%;
}

.progress.complete{
	background-color: greenyellow;
}

/*********************************************
 * UI BUBBLE
 *********************************************/

.text-options {

	-webkit-transition: opacity 250ms, margin 250ms;
	-moz-transition: opacity 250ms, margin 250ms;
	-ms-transition: opacity 250ms, margin 250ms;
	-o-transition: opacity 250ms, margin 250ms;
	transition: opacity 250ms, margin 250ms;

	position: absolute;
	left: -999px;
	top: -999px;
	color: #fff;
	height: 0;
	width: 0;
	z-index: 5;
	margin-top: 5px;
	opacity: 0;
}

.text-options.fade {
	opacity: 0;
	margin-top: -5px;
}

.text-options.active {
	opacity: 1;
	margin-top: 0;
}

.options {
	background-color: rgba(0,0,0,.9);
	position: absolute;
	border-radius: 5px;
	margin-left: -63px;
	margin-top: -46px;
	z-index: 1000;
	padding: 5px 4px 5px 5px;
	width: 125px;
	height: 40px;

	-webkit-transition: all 300ms ease-in-out;
	-moz-transition: all 300ms ease-in-out;
	-ms-transition: all 300ms ease-in-out;
	-o-transition: all 300ms ease-in-out;
	transition: all 300ms ease-in-out;
}

.options.url-mode {
	width: 275px;
	margin-left: -137px;
}

.options.url-mode .bold, .options.url-mode .italic, .options.url-mode .quote {
	width: 0;
	overflow: hidden;
	margin-right: 0;
	opacity: 0;
}

.options .italic {
	font-style: italic;
}

.options button {
	-webkit-transition: all 250ms ease-in-out;
	-moz-transition: all 250ms ease-in-out;
	-ms-transition: all 250ms ease-in-out;
	-o-transition: all 250ms ease-in-out;
	transition: all 250ms ease-in-out;

	float: left;
	width: 28px;
	opacity: .7;
	height: 30px;
	border-radius: 3px;
	margin-right: 1px;
	font-family: 'Lora', serif;
}

.options.url-mode input{
	border-left: 2px solid transparent;
	padding-right: 5px;
	padding-left: 5px;
	width: 236px;
}

.options input {
	-webkit-transition: all 300ms ease-in-out;
	-moz-transition: all 300ms ease-in-out;
	-ms-transition: all 300ms ease-in-out;
	-o-transition: all 300ms ease-in-out;
	transition: all 300ms ease-in-out;

	border-radius: 3px;
	overflow: hidden;
	outline: 0;
	height: 30px;
	padding: 0;
	margin: 0;
	border: 0;
	float: left;
	width: 0;
}

.options button.active {
	background-color: rgba(255,255,255,.4);
	opacity: 1;
}

.yang .options button.active {
	background-color: rgba(0,0,0,.3);
}

.options button:hover {
	opacity: .95;
}

.options:before {
	content: "";
	border-top: 5px solid rgba(0,0,0,.9);
	border-bottom: 5px solid transparent;
	border-right: 5px solid transparent;
	border-left: 5px solid transparent;
	position: absolute;
	margin-left: -5px;
	bottom: -15px;
	height: 5px;
	width: 0;
	left: 50%;
}

.yang .options {
	background-color: rgba(255,255,255,.9);
	color: #000;
}

.yang .options:before {
	border-top: 5px solid rgba(255,255,255,.9);
}

.url {
	-webkit-font-smoothing: antialiased;
}

.top {
	position: absolute;
	top: 0;
}

.bottom {
	position: absolute;
	bottom: 0;
}

.about {
	font-family: 'Lora', serif;
	font-size: 28px !important
}

.wrapper {
	position: relative;
	height: 100%;
}

/*********************************************
 * PRINT
 *********************************************/

@media print {

	body {
		overflow: visible;
	}

	section {
		color: #111 !important;
	}

	.text-options, .ui, .word-counter {
		display: none;
	}
}
